Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(UI): Refactor Dataset Health Status #5222

Merged

Conversation

jjoyce0510
Copy link
Collaborator

Summary

In this PR, we refactor the "health" field of the Dataset entity to return a list of statuses, instead of a single list. This is a BREAKING change to the dataset GraphQL API, and as such is announced. The "health" field has been explicitly marked as Experimental precisely for this reason - it is subject to change in backward incompatible ways (the only known consumer is the UI).

Why do this?
This change sets us up for a future where multiple Health Status flags are presented for each asset (think assertions, tests, operations, and more)

Changes

  1. Return list from Dataset health resolver
  2. Add "type" field to HealthStatus, with only Assertions health for now
  3. Corresponding UI changes.

Validation
Verified this works locally:

Screen Shot 2022-06-21 at 4 27 42 PM

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions
Copy link

github-actions bot commented Jun 22, 2022

Unit Test Results (build & test)

389 tests  +10   389 ✔️ +10   10m 37s ⏱️ + 2m 0s
  92 suites +  2       0 💤 ±  0 
  92 files   +  2       0 ±  0 

Results for commit 0b2570d. ± Comparison against base commit baf3f3f.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

Unit Test Results (metadata ingestion)

       8 files         8 suites   1h 17m 5s ⏱️
   565 tests    561 ✔️   3 💤 1
1 068 runs  1 024 ✔️ 43 💤 1

For more details on these failures, see this check.

Results for commit f21a31a.

Copy link
Collaborator

@chriscollins3456 chriscollins3456 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@jjoyce0510 jjoyce0510 force-pushed the jj--expand-dataset-health-to-list branch from f21a31a to b2b8773 Compare June 22, 2022 15:51
Copy link
Contributor

@dexter-mh-lee dexter-mh-lee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jjoyce0510 jjoyce0510 merged commit 6b82a0b into datahub-project:master Jun 22, 2022
alexey-kravtsov pushed a commit to infobip/datahub that referenced this pull request Jul 8, 2022
maggiehays pushed a commit to maggiehays/datahub that referenced this pull request Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants